const ServiceListComp = (location,callback) => {
  require.ensure([], require => {
    callback(null, require("containers/increment-service/senior-service-open/service-list").default);
  },"senior-service-open")
}
const OrderConfirm = (location,callback) => {
  require.ensure([], require => {
    callback(null, require("containers/increment-service/senior-service-open/order-confirm").default);
  },"order-confirm")
}
const OrderPay = (location,callback) => {
  require.ensure([], require => {
    callback(null, require("containers/increment-service/senior-service-open/order-pay").default);
  },"order-pay")
}
const ApplyInvoice = (location,callback) => {
  require.ensure([], require => {
    callback(null, require("containers/increment-service/senior-service-open/apply-invoice").default);
  },"apply-invoice")
}
const OpenSetting = (location,callback) => {
  require.ensure([], require => {
    callback(null, require("containers/increment-service/senior-service-open/open-setting").default);
  },"open-setting")
}
const OrderManagement = (location,callback) => {
  require.ensure([], require => {
    callback(null, require("containers/increment-service/order-management/order-management").default);
  },"order-management")
}
const OrderManagementDetail = (location,callback) => {
  require.ensure([], require => {
    callback(null, require("containers/increment-service/order-management/order-management-detail").default);
  },"order-management-detail")
}
const homeComp = (location,callback) => {
  require.ensure([], require => {
    callback(null, require("containers/home").default);
  },"home")
}
const CommonQuestion = (location,callback) => {
  require.ensure([], require => {
    callback(null, require("../../containers/help-center-user/common-question/common-question").default);
  },"common-question")
};
const DocComp = (location,callback) => {
  require.ensure([], require => {
    callback(null, require("../../containers/help-center-user/doc/doc").default);
  },"doc")
};
const UpdateLog = (location,callback) => {
  require.ensure([], require => {
    callback(null, require("../../containers/help-center-user/update-log/update-log").default);
  },"update-log")
};
const FinancialCourseList = (location,callback) => {
  require.ensure([], require => {
    callback(null, require("../../containers/help-center-user/financial-course/financial-course-list").default);
  },"financial-course")
};
const LoaddingComp = (location,callback) => {
  require.ensure([], require => {
    callback(null, require("components/loading").default);
  },"loading")
};
const PurchaseHistory = (location,callback) => {
  require.ensure([], require => {
    callback(null, require("containers/purchase-history/purchase-history").default);
  },"purchase-history")
};
const UnboxSetting = (location,callback) => {
  require.ensure([], require => {
    callback(null, require("containers/unbox-setting/unbox-setting").default);
  },"unbox-setting")
};

const home = {
  key:'home',
  url: '/main/home',
  components: homeComp,
  icon: 'home',
  children: {
    unboxSetting: {
      key: 'unbox-setting',
      url: '/main/unbox-setting',
      components: UnboxSetting,
      parent: 'home'
    },
    loadingPage: {
      key:'loading',
      url: '/loading',
      components: LoaddingComp,
    },
    incrementService: {
      key: 'senior-service-open',
      url: '/main/increment-service/senior-service-open/:serviceType',
      components: ServiceListComp,
      icon: 'credit-card',
      admin: true,
      parent: 'increment-service',
      children: {
        //确认订单
        orderConfirm: {
          key: 'order-confirm',
          url: '/main/increment-service/senior-service-open/order-confirm/:id',
          components: OrderConfirm,
          parent: 'senior-service-open'
        },
        //付款
        orderPay: {
          key: 'order-pay',
          url: '/main/increment-service/senior-service-open/order-pay/:orderId',
          components: OrderPay,
          parent: 'senior-service-open'
        },
        //申请开票
        applyInvoice: {
          key: 'apply-invoice',
          url: '/main/increment-service/senior-service-open/apply-invoice/:orderId',
          components: ApplyInvoice,
          parent: 'senior-service-open'
        },
        //开通设置
        openSetting: {
          key: 'open-setting',
          url: '/main/increment-service/senior-service-open/open-setting/:orderId/:serviceCode',
          components: OpenSetting,
          parent: 'senior-service-open'
        },
      }
    },
    orderManagement: {
      key: 'order-management',
      url: '/main/increment-service/order-management/:orderType',
      components: OrderManagement,
      icon: 'bars',
      admin: true,
      parent: 'increment-service',
      children: {
        orderManagementDetail: {
          key: 'order-management-detail',
          url: '/main/increment-service/order-management/order-management-detail/:id',
          components: OrderManagementDetail,
          parent: 'order-management'
        },
      }
    },
    CommonQuestion: {
      key: 'common-question',
      url: '/main/help-center-user/common-question/:id',
      components: CommonQuestion,
      icon: 'line-chart',
      parent: 'help-center-user',
      children: {},
    },
    DocComp: {
      key:'doc',
      url: '/main/help-center-user/doc/:linkId',
      components: DocComp,
      icon: 'home',
      parent: 'help-center-user',
      children: {}
    },
    UpdateLog: {
      key: 'update-log',
      url: '/main/help-center-user/update-log',
      components: UpdateLog,
      icon: 'line-chart',
      parent: 'help-center-user',
      children: {},
    },
    FinancialCourseList: {
      key: 'financial-course',
      url: '/main/help-center-user/financial-course',
      components: FinancialCourseList,
      parent: 'help-center-user',
      children: {},
    },
    PurchaseHistory: {
      key: 'purchase-history',
      url: '/main/purchase-history',
      components: PurchaseHistory,
      children: {},
    },
  }
};

export default home;
